package KernelCmNotifications.AttributeValueChangePackage;


/**
 * Generated from IDL struct "ModifiedAttribute".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ModifiedAttributeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(KernelCmNotifications.AttributeValueChangePackage.ModifiedAttributeHelper.id(),"ModifiedAttribute",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("name", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("new_value", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(11)), null),new org.omg.CORBA.StructMember("old_value", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(11)), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:KernelCmNotifications/AttributeValueChange/ModifiedAttribute:1.0";
	}
	public static KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute read (final org.omg.CORBA.portable.InputStream in)
	{
		KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute result = new KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute();
		result.name=in.read_string();
		result.new_value=in.read_any();
		result.old_value=in.read_any();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final KernelCmNotifications.AttributeValueChangePackage.ModifiedAttribute s)
	{
		out.write_string(s.name);
		out.write_any(s.new_value);
		out.write_any(s.old_value);
	}
}
